package router

import (
	"github.com/gin-gonic/gin"
	"userop_bff/api"
	"userop_bff/middlerware"
)

func InitMessageRouter(r *gin.Engine) {
	MessageRouter := r.Group("message").Use(middlerware.CheckToken())
	{
		//留言列表
		MessageRouter.GET("", api.MessageList)
		//留言
		MessageRouter.POST("", api.CreateMessage)

	}
}
